<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-userAdvice-add">
	        <div class="form-group">
            <label class="col-sm-3 control-label">昵称：</label>
            <div class="col-sm-8">
                <input id="nickName" name="nickName" class="form-control" type="text">
            </div>
        </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">反馈内容：</label>
                <div class="col-sm-8">
                    <div class="editor-wp">
                        <textarea class="editor-area" id="editor-area"></textarea>
                        <input type="hidden" id="advice" name="advice" value=""/>
                    </div>
                </div>
            </div>

		</form>
	</div>
    <div th:include="include::footer"></div>
    <div th:include="tool/upload/webuploader :: webuploader"></div>
    <script th:src="@{/ajax/libs/select/select2.js}"></script>
    <!--富文本编辑器-->
    <script src="../../../static/tinymce/tinymce.min.js" th:src="@{/tinymce/tinymce.min.js}"></script>
    <script src="../../../static/tinymce/tinymce.common.js" th:src="@{/tinymce/tinymce.common.js}"></script>
    <script type="text/javascript">
		var prefix = ctx + "module/userAdvice"
		$("#form-userAdvice-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
                $("#advice").val(tinymce.activeEditor.getContent());
	            $.operate.save(prefix + "/add", $('#form-userAdvice-add').serialize());
	        }
	    }
	</script>
</body>
</html>
